package com.joysw.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * 
* @Title: NoScrollGridView.java 
* @Package com.joysw.view 
* @Description: 无滚动条GridView
* @author LIMINGYAN  
* @date 2015年3月29日 下午2:26:32 
* @version V1.0
 */
public class NoScrollGridView extends GridView {

	public NoScrollGridView(Context context) {
		super(context);
	}

	public NoScrollGridView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}
	
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,MeasureSpec.AT_MOST);
		super.onMeasure(widthMeasureSpec, expandSpec);
	}

}
